package com.my.chapter7;

public class practice21 {
    public static void main(String[] args) {
        Type6 t = new Type6();
        t.display();
        t.g();
    }
}

class Type5{
    public final void display(){
        System.out.println("Type5 display");
    }
}

class Type6 extends Type5{

    //public final void display(){}
    public void g(){
        System.out.println("Type6 g");
    }
}
